<extend name="Public:list_layout" />、
<block name="title"><title>小说章节</title></block>
<block name="subnav">    
    <a class="on" href="<?php echo U('Novel/index');?>"><em>章节列表</em></a>
</block>
<block name="main">
  <form name="myform" action="__CONTROLLER__/listorder" method="post">
    <div class="table-list">
      <table width="100%" cellspacing="0">
        <thead>
          <tr>
            <th width="16"><input type="checkbox" value="" id="check_box" onclick="selectall('ids[]');"></th>
            <th width="150">章回名</th>
            <th>管理操作</th>
          </tr>
        </thead>
        <tbody>
          <?php  foreach ($chapters as $key => $value) { ?>
          <tr>
            <td align="center"><input class="inputcheckbox " name="ids[]" value="<?php echo $value['id']; ?>" type="checkbox"></td>
            <td align="center"><?php echo $value['name']; ?></td>
            <td align="center">
              <a href="<?php echo U('Chapter/content'). '?id=' .$value['id']; ?>">查看</a>
              <a onclick="return ConfirmDel();" href="<?php echo U('Chapter/delete'). '?id=' .$value['id']; ?>">删除</a>
            </td>
          </tr>
          <?php } ?>
        </tbody>
      </table>

    </div>
    <div class="btn">
        <label for="check_box">全选/取消</label>
        <input name="deletesubmit" type="submit" class="button" value="删除" onclick="document.myform.action='<?php echo U('Chapter/delete'); ?>';return confirm('确认要删除 『 选中 』 吗？')">
    </div>
  </form>
</block>